#ifndef QGRAPHICSITEMQUESTIONFULLSCREEN_H
#define QGRAPHICSITEMQUESTIONFULLSCREEN_H

#include "tableschema.h"

class MemoryGame;
class QGraphicsItemQuestionFullScreen : public QObject, public QGraphicsRectItem
{
    Q_OBJECT

public:
    QGraphicsItemQuestionFullScreen( int x, int y, int width, int height, MemoryGame & parent );
    virtual ~QGraphicsItemQuestionFullScreen();
    void setQuestionMode( bool questionMode );
    bool isQuestionMode() const;
    void setQuestion( const Question & question );

private:
    virtual void paint( QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget = 0 );
    virtual void mouseDoubleClickEvent( QGraphicsSceneMouseEvent * event );

private:
    Question m_question;
    MemoryGame & m_parent;
    QTimer m_timer;
    bool m_questionMode;

    static QBrush m_backroundBrushQuestion;
    static QBrush m_backroundBrushAnswer;
    static QFont m_font;
};

#endif
